package com.atguigu.lease.common.utils;

import java.util.Random;

public class VerifyCodeUtil {
    public static String generateVerifyCode(int len){
        StringBuilder stringBuilder = new StringBuilder();
        for (int i = 0; i < len; i++) {
            stringBuilder.append(new Random().nextInt(10));
        }
        return stringBuilder.toString();
    }
}
